<template>
  <el-row :gutter="20">
    <el-col :xs="12" :sm="12" :md="6" :lg="6" :xl="6">
      <div class="htj_box flexcenter">
        <img src="@/assets/images/hbg1.png" alt="" class="boximg1" />
        <img src="@/assets/images/hicon1.png" alt="" class="icon" />
        <div class="hbox_text flexcolumn pl_15 c_fff">
          <span class="fw f-20 mb_6">{{staticData.all_user_num}}</span>
          <span class="f-16">总用户数</span>
        </div>
      </div>
    </el-col>
    <el-col :xs="12" :sm="12" :md="6" :lg="6" :xl="6">
      <div class="htj_box flexcenter">
        <img src="@/assets/images/hbg2.png" alt="" class="boximg1" />
        <img src="@/assets/images/hicon2.png" alt="" class="icon" />
        <div class="hbox_text flexcolumn pl_15 c_fff">
          <span class="fw f-20 mb_6">{{staticData.all_task_num}}</span>
          <span class="f-16">活动总数</span>
        </div>
      </div>
    </el-col>
    <el-col :xs="12" :sm="12" :md="6" :lg="6" :xl="6">
      <div class="htj_box flexcenter">
        <img src="@/assets/images/hbg3.png" alt="" class="boximg1" />
        <img src="@/assets/images/hicon3.png" alt="" class="icon" />
        <div class="hbox_text flexcolumn pl_15 c_fff">
          <span class="fw f-20 mb_6">{{staticData.all_working_num}}</span>
          <span class="f-16">活动进行中总数</span>
        </div>
      </div>
    </el-col>
    <el-col :xs="12" :sm="12" :md="6" :lg="6" :xl="6">
      <div class="htj_box flexcenter">
        <img src="@/assets/images/hbg4.png" alt="" class="boximg1" />
        <img src="@/assets/images/hicon4.png" alt="" class="icon" />
        <div class="hbox_text flexcolumn pl_15 c_fff">
          <span class="fw f-20 mb_6">{{staticData.all_template_num}}</span>
          <span class="f-16">活动模板总数</span>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  data(){
    return {
      staticData:{}
    }
  },
  props:{
    numData:{
      type:Object,
    }
  },
  created(){
    this.staticData = this.numData
  },
}
</script>

<style lang="scss" scoped>
.htj_box{
    height: 96px;
    width: 100%;
    position: relative;
    padding: 20px;
    .icon{
        width: auto;
        height: 52px;
        z-index: 1;
    }
    .hbox_text{
        width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        z-index: 1;
    }
}
.boximg1{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
</style>